package com.ld.hpfs.common.utils;

public class IntegerUtil {
	/*
	 * 判断int1，int2是否相等
	 */
	public static boolean compare(Integer int1, Integer int2) {
		return int1.intValue() == int2.intValue();
	}

	public static Integer getInt(String intStr) {
		if (intStr == null || intStr.trim().equalsIgnoreCase("")) {
			intStr = "-1";
		}
		return Integer.parseInt(intStr);
	}

	public static boolean isSame(Integer int1, Integer int2) {
		if (int1.intValue() == int2.intValue()) {
			return true;
		} else {
			return false;
		}
	}
	
	public static final int DEFAULT_INT = -1;
}
